package com.wdf.project03.Mapper;
import com.wdf.project03.pojo.Emp;
import org.apache.ibatis.annotations.*;

import java.time.LocalDate;
import java.util.List;

@Mapper
public interface EmpMapper {
    public List<Emp> list(@Param("name") String name,@Param("gender") Short gender, @Param("begin") LocalDate begin, @Param("end") LocalDate end);
    @Delete("delete from emp where id = #{id}")
    void deleteById(Integer id);

    void updateById(Emp emp);
    @Select("select * from emp where  id = #{id}")
    Emp selectById(Integer id);
    void insert(Emp emp);
    @Select("select * from emp where username = #{username} and password = #{password}")
    Emp selectCount(Emp emp);
}
